package com.gongpingjialoan.activity.tool;

import java.util.Map;

import com.gongpingjialoan.R;
import com.gongpingjialoan.activity.main.BaseActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;
/**
 * 车辆购险记录查询     wang
 * @author Administrator
 *
 */
public class RisksCoverDetailActivity extends BaseActivity{
	
	private Map<String,String> record;
	
	private TextView startDate;
	private TextView operateDate;
	private TextView endDate;
	private TextView licenseNo;
	private TextView companyCode;
	private TextView policyNo;
	private TextView riskType;
	private Button backImg;
	
	@SuppressWarnings("unchecked")
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		
		super.onCreate(savedInstanceState);

		setContentView(R.layout.activity_risks_cover_detail);
		initBase(this);
		Intent intent = getIntent();
		Bundle bundle = intent.getExtras();
		record = (Map<String, String>) bundle.get("record");
		getViews();
		setTexts();
		
		
	}
	
	private void getViews()
	{
	    setTitle("购险记录查询");
		startDate = (TextView) findViewById(R.id.start_date);
		operateDate = (TextView) findViewById(R.id.operate_date);
		endDate = (TextView) findViewById(R.id.end_date);
		licenseNo = (TextView) findViewById(R.id.license_no);
		companyCode = (TextView) findViewById(R.id.company_code);
		policyNo = (TextView) findViewById(R.id.policy_no);
		riskType = (TextView) findViewById(R.id.risk_type);
	}
	
	private void setTexts()
	{
		startDate.setText(record.get("StartDate"));
		operateDate.setText(record.get("OperateDate"));
		endDate.setText(record.get("EndDate"));
		licenseNo.setText(record.get("LicenseNo"));
		companyCode.setText(record.get("CompanyCode"));
		policyNo.setText(record.get("PolicyNo"));
		riskType.setText(record.get("RiskType"));
		
	}
}
